import React from 'react'
import { useNavigate } from 'react-router-dom'
import { Result, Button } from 'antd'

export default function NoPermission() {
  const navigate = useNavigate()
  return (
    <Result
      status="403"
      title="403"
      subTitle="Sorry, you are not authorized to access this page."
      extra={<Button type="primary" onClick={() => navigate('/login')}>Exit</Button>}
    />
  )
}